home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / compress / shaid200.zip / PCBTEST.BAT < prev   
DOS Batch File  |  1996-11-05  |  2KB  |  65 lines

  1. @echo off
  2.  
  3. rem *** This is an example batch file to demonstrate using ARCHID 2.01.   ***
  4. rem *** I do NOT recommend using this kind of PCBTEST file,               ***
  5. rem *** this is just an example to show a way to use it.                  ***
  6.  
  7. archid %1 arj zip rar lha lharc uc2 arj-x zip-x zjr-x rar-x lha-x lhc-x
  8. rem *** (to prevent complexity of this example,                           ***
  9. rem ***  we will not accept other archives than those...)                 ***
  10.  
  11. if errorlevel 255 goto nonarc
  12. rem *** (not recognized or supported)   ***
  13. if errorlevel 249 goto critical
  14. rem *** (some other internal error)     ***
  15. if errorlevel 12 goto lha
  16. if errorlevel 11 goto lha
  17. if errorlevel 10 goto rar
  18. if errorlevel  9 goto zip
  19. if errorlevel  8 goto zip
  20. if errorlevel  7 goto arj
  21. if errorlevel  6 goto uc2
  22. if errorlevel  5 goto lha
  23. if errorlevel  4 goto lha
  24. if errorlevel  3 goto rar
  25. if errorlevel  2 goto zip
  26. if errorlevel  1 goto arj
  27.  
  28. :ARJ
  29. arj t %1
  30. if errorlevel 1 goto corrupted
  31. goto end
  32.  
  33. :ZIP
  34. pkunzip -t %1
  35. if errorlevel 1 goto corrupted
  36. goto end
  37.  
  38. :RAR
  39. rar t -std %1
  40. if errorlevel 1 goto corrupted
  41. goto end
  42.  
  43. :LHA
  44. lha t %1
  45. if errorlevel 1 goto corrupted
  46. goto end
  47.  
  48. :UC2
  49. uc t %1
  50. if errorlevel 1 goto corrupted
  51. goto end
  52.  
  53. :corrupted
  54. echo @X04File corrupted: @X0C%1 >pcbfail.txt
  55. goto end
  56.  
  57. :nonarc
  58. echo Non-archive or not supported by this system: %1 >pcbpass.txt
  59. goto end
  60.  
  61. :critical
  62. echo @X04Critical archive testing error. Report to SysOp! >pcbpass.txt
  63.  
  64. :end
  65.